package com.tommy.foreground;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * @Package Name: com.tommy.foreground
 * @Description: TODO
 * @Author tommy
 * @Date 2017.11.03 11:46
 * @Modify Who      When     What
 * ---------- ----------- -------------
 */
@SpringBootApplication
@MapperScan("com.tommy.foreground.dao")
public class ForegroundApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(ForegroundApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(ForegroundApplication.class, args);
    }
}